<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>原型链</title>
</head>

<body>
    <script type="text/javascript">
        console.log(Object.prototype);
        function Fn() {
            this.test1 = function () {
                console.log('test1');
            }
        }
        console.log(Fn.prototype)
        Fn.prototype.test2 = function () {
            console.log('test2');
        }
        var fn = new Fn()
        fn.test1()
        fn.test2()
        console.log(fn.toString())
        console.log(fn.test3)
        //fn.test3()

        console.log(Function);
        console.log(Function.prototype);
        var fnn = new Function()
        console.log(fnn.prototype);

        console.log(Fn.prototype instanceof Object);
        console.log(Object.prototype instanceof Object);
        console.log(Function.prototype instanceof Object);
    </script>
</body>

</html>